package com.shop.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.user.model.SysRole;
import com.shop.user.vo.role.RolePageReqVo;
import com.shop.user.vo.role.RolePageResVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 分页查询角色信息
     * @param page
     * @param reqVo
     * @return
     */
    Page<RolePageResVo> findPage(IPage<?> page, @Param("reqVo")RolePageReqVo reqVo);
}
